package com.ninthgroup.service.Impl;

import com.ninthgroup.entity.Sex;
import com.ninthgroup.mapper.SexMapper;
import com.ninthgroup.service.SexService;
import com.ninthgroup.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ：1452863884@qq.com rcg
 * @date ：Created in 2022/10/16 9:22
 * @description：性别接口实现类
 * @modified By：
 * @version:1.0
 */
@Service
public class SexServiceImpl implements SexService {

    @Autowired
    private SexMapper sexMapper;

    @Override
    public Result selectSexAll() {

        List<Sex> sexes = sexMapper.selectAllSex();

        return new Result(200,"查询性别成功",sexes);
    }
}